package com.xy.biz.auth.domain.req;

import com.xy.lang.validation.annotation.AlertMessage;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ChangePasswordRequest {

    /**
     * 用户Id
     */
    @NotBlank(message = "userIdRequired")
    @AlertMessage(code = "userIdRequired", msg = "用户Id不能为空")
    private Long userId;

    /**
     * 密码
     */
    @NotBlank(message = "passwordRequired")
    @AlertMessage(code = "passwordRequired", msg = "密码不能为空")
    private String password;

}
